package com.ebt.m.data.entity;

import com.ebt.m.data.middle.CompanyDataInfo;

import java.io.Serializable;
import java.util.Date;

/**
 * 公司
 *
 * @author Michael.li
 */
public class CompanyInfo extends SummationInfo implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 4349015481001036524L;

    public CompanyInfo() {
    }

    // public int Count2;
    public String Alpha;
    public String Logo;
    public String Name;
    public String ShortName;
    public String EnglishName;
    public String RegisteredCapital;
    public String RegisteredPlace;
    public String RegisteredDate;
    public String BusinessScope;
    public String BusinessRegions;
    public String ArtificialPerson;
    public String ServicePhone;
    public String ComplaintsPhone;
    public String OfficialWebsite;
    public int productWeight;
    public int Weight;

    public String LocalVideoRes;
    public String LocalImageResource;
    /**
     * 服務器上视频介绍资源url
     */
    public String VideoRes;
    /**
     * 服務上图片介绍资源url
     */
    public String ImageResource;
    /**
     * 服务器视频版本号
     **/
    public int VideoResVersion;
    /**
     * 服务器上图片版本号
     **/
    public int ImageResourceVersion;
    /**
     * 本地视频版本号
     **/
    public int LocalVideoResVersion;
    /**
     * 本地图片版本号
     **/
    public int LocalImageResourceVersion;
    /**
     * 是否代理公司
     */
    public boolean IsAgency;
    /**
     * 类型
     */
    public int BrandTypeID;
    /**
     * 本地模式
     */
    public boolean Offline;
    /**
     * 服务器上公司记录更新时间
     **/
    public Date CompanyUpdateTime;
    /**
     * 本地公司记录更新时间
     **/
    public Date LocalCompanyUpdateTime;

    /**
     * 自动解释url
     */
    public String AutoExplanUrl;
    /***/
    public String ItemInterpretationResource;

    public String InsurerProposalSysID;

    public String ExtendJSON;

    public String ResPrefix;

    public String ShowArea;

    public int UpdateFlag;



    public CompanyDataInfo getInfo() {
        CompanyDataInfo info = new CompanyDataInfo();
        info.companyId = String.valueOf(Id);
        info.Logo = Logo;
        info.Name = Name;

        info.proposal = null;
        info.AutoExplanUrl = AutoExplanUrl;
        info.IsAgency = false;

        info.ImageResourceVersion = ImageResourceVersion;
        info.LocalImageResourceVersion = LocalImageResourceVersion;
        info.VideoResVersion = VideoResVersion;
        info.LocalVideoResVersion = LocalVideoResVersion;
        info.ImageResource = ImageResource;
        info.VideoRes = VideoRes;
        info.LocalVideoRes = LocalVideoRes;
        info.LocalImageResource = LocalImageResource;

        info.CompanyUpdateTime = CompanyUpdateTime;
        info.LocalCompanyUpdateTime = LocalCompanyUpdateTime;
        info.InsurerProposalSysID = InsurerProposalSysID;

        info.ExtendJSON = ExtendJSON;
        info.ResPrefix = ResPrefix;
        return info;
    }


}
